import { WeaSelect, WeaLocaleProvider } from 'ecCom';
import { HtmlType } from '../../../../constants/excel';
const getLabel = WeaLocaleProvider.getLabel;
export default class FieldHtmlType extends React.Component {
    render() {
        if (this.props.isField) {
            return (
                <div className="ant-row">
                    <label>{getLabel('508449','显示方式')}</label>
                    <WeaSelect ecId={`${this && this.props && this.props.ecId || ''}_WeaSelect@w6g670`}
                        options={[{
                            key: HtmlType.Input,
                            showname: getLabel('508450','文本框')
                        }, {
                            key: HtmlType.Browser,
                            showname: getLabel('508454','浏览按钮')
                        }, {
                            key: HtmlType.Check,
                            showname: getLabel('508457','Check框')
                        }, {
                            key: HtmlType.Select,
                            showname: getLabel('508459','选择框')
                        }, {
                            key: HtmlType.Upload,
                            showname: getLabel('514584','附件上传')
                        }]}
                        {...this.props}
                    />
                </div>

            )
        }
        return null;
    }
}